/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.dynamicrecord.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.dynamicrecord.entity.DynamicRecord;
import com.jeeplus.modules.dynamicrecord.mapper.DynamicRecordMapper;

/**
 * 活跃收益记录Service
 * @author freedom
 * @version 2020-08-24
 */
@Service
@Transactional(readOnly = true)
public class DynamicRecordService extends CrudService<DynamicRecordMapper, DynamicRecord> {

	public DynamicRecord get(String id) {
		return super.get(id);
	}
	
	public List<DynamicRecord> findList(DynamicRecord dynamicRecord) {
		return super.findList(dynamicRecord);
	}
	
	public Page<DynamicRecord> findPage(Page<DynamicRecord> page, DynamicRecord dynamicRecord) {
		return super.findPage(page, dynamicRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(DynamicRecord dynamicRecord) {
		super.save(dynamicRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(DynamicRecord dynamicRecord) {
		super.delete(dynamicRecord);
	}

	public Double getTodayDynamic() {
		Double money = mapper.getTodayDynamic();
		return money;
	}

	public List<DynamicRecord> findListByDays(DynamicRecord dynamicRecord) {
		return mapper.findListByDays(dynamicRecord);
	}
}